<template>
  <div class="home-bg">
    <div class="home-title">XXAI超级智能体</div>
    <div class="home-sub">/ 探索AI的无限可能 /</div>
    <div class="card-list">
      <div class="card" @click="goLoveMaster">
        <div class="icon-bg">
          <span class="emoji">❤️</span>
        </div>
        <div class="card-title">AI恋爱大师</div>
        <div class="card-desc">智能情感顾问，帮你解答恋爱烦恼</div>
        <button class="card-btn">立即体验 →</button>
      </div>
      <div class="card" @click="goSuperAgent">
        <div class="icon-bg">
          <span class="emoji">🤖</span>
        </div>
        <div class="card-title">AI超级智能体</div>
        <div class="card-desc">全能型AI助手，解决各类专业问题</div>
        <button class="card-btn">立即体验 →</button>
      </div>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router';
const router = useRouter();
const goLoveMaster = () => router.push('/love-master');
const goSuperAgent = () => router.push('/super-agent');
</script>

<style scoped>
.home-bg {
  min-height: 100vh;
  background: #181f2a;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
}
.home-title {
  font-size: 2.8rem;
  color: #4de2ff;
  font-weight: bold;
  text-shadow: 0 0 16px #4de2ff, 0 0 32px #1a6fa6;
  margin-bottom: 10px;
  letter-spacing: 2px;
}
.home-sub {
  color: #b2c2d6;
  font-size: 1.1rem;
  margin-bottom: 40px;
}
.card-list {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.card {
  background: #232c3b;
  border-radius: 20px;
  box-shadow: 0 4px 32px 0 #0e1626cc;
  padding: 2.5rem 2rem 2rem 2rem;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  position: relative;
}
.card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 40px 0 #4de2ff55;
}
.icon-bg {
  background: radial-gradient(circle, #ff5e62 0%, #ff9966 100%);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 0 24px #ff5e6288;
}
.card:nth-child(2) .icon-bg {
  background: radial-gradient(circle, #4de2ff 0%, #1a6fa6 100%);
  box-shadow: 0 0 24px #4de2ff88;
}
.emoji {
  font-size: 2.2rem;
}
.card-title {
  color: #fff;
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 0 0 8px #4de2ff44;
}
.card-desc {
  color: #b2c2d6;
  font-size: 1rem;
  margin-bottom: 24px;
  text-align: center;
}
.card-btn {
  background: linear-gradient(90deg, #4de2ff 0%, #1a6fa6 100%);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 0.7rem 2.2rem;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 2px 12px #4de2ff44;
  transition: background 0.2s;
}
.card-btn:hover {
  background: linear-gradient(90deg, #1a6fa6 0%, #4de2ff 100%);
}
@media (max-width: 700px) {
  .card-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  .card {
    width: 90vw;
    min-width: 320px;
  }
}
</style> 